Release 10.1A: OpenEdge Application Server:
Developing AppServer Applications
Using the SERVER-CONNECTION-CONTEXT attribute
When a client application establishes a connection with an AppServer, the AppServer broker creates a connection context area in memory for the connection. An AppServer procedure can access this context area using the
SERVER-CONNECTION-CONTEXTattribute of the AppServerSESSIONhandle. This is a readable and writable attribute of typeCHARACTER. The initial value ofSERVER-CONNECTION-CONTEXTis the Unknown value (?).When any remote procedure executes, it can set the
SERVER-CONNECTION-CONTEXTattribute to any application-specific value. Each time that OpenEdge assigns a client request to an AppServer agent, OpenEdge ensures that theSERVER-CONNECTION-CONTEXTattribute is set to the last value assigned in a previous AppServer agent that serviced the same client connection. This value is also available to any Connect procedure, Activate procedure, Deactivate procedure, or Disconnect procedure that you configure for the AppServer. Thus, each AppServer agent that services a client connection can pass context information to the next.For more information on the Connect, Activate, Deactivate, and Disconnect procedures, see the "Using AppServer configuration procedures" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |